<style lang="less" scoped>
@import url('./style.less');
.panel {
  &-content {
    &__item {
      &-label {
        flex: 1;
      }
    }
  }
}
</style>
<template>
  <div class="box">
    <div class="box-title" @click="show=!show">
      <div class="box-title__label">社保信息</div>
      <div class="box-title__right">
        <!-- <span class="num">{{len||'无'}}</span> -->
        <i :class="cls"></i>
      </div>
    </div>
    <div class="box-content" v-show="show">
      <div class="panel">
        <!-- <div class="panel-title">
          <div class="panel-title__label">资产总额</div>
          <div class="panel-title__right"></div>
        </div> -->
        <div class="panel-content">
          <div class="panel-content__item">
            <div class="panel-content__item-label">城镇职工基本养老保险</div>
            <div class="panel-content__item-right">{{dt&&dt.YlIns||'-'}}</div>
          </div>
          <div class="panel-content__item">
            <div class="panel-content__item-label">职工基本医疗保险</div>
            <div class="panel-content__item-right">{{dt&&dt.MedicalInsurance||'-'}}</div>
          </div>
          <div class="panel-content__item">
            <div class="panel-content__item-label">生育保险</div>
            <div class="panel-content__item-right">{{dt&&dt.SYuIns||'-'}}</div>
          </div>
          <div class="panel-content__item">
            <div class="panel-content__item-label">失业保险</div>
            <div class="panel-content__item-right">{{dt&&dt.SYeIns||'-'}}</div>
          </div>
          <div class="panel-content__item">
            <div class="panel-content__item-label">工伤保险</div>
            <div class="panel-content__item-right">{{dt&&dt.GsIns||'-'}}</div>
          </div>
        </div>
      </div>

      <div class="panel">
        <div class="panel-title">
          <div class="panel-title__label">单位缴纳基数</div>
          <div class="panel-title__right"></div>
        </div>
        <div class="panel-content">
          <div class="panel-content__item">
            <div class="panel-content__item-label">单位参加城镇职工基本养老保险缴纳基数</div>
            <div class="panel-content__item-right">{{dt&&dt.CompanyYl||'-'}}</div>
          </div>
          <div class="panel-content__item">
            <div class="panel-content__item-label">单位参加职工基本医疗保险缴费基数</div>
            <div class="panel-content__item-right">{{dt&&dt.CompanyMedical||'-'}}</div>
          </div>
          <div class="panel-content__item">
            <div class="panel-content__item-label">单位参加生育保险缴费基数</div>
            <div class="panel-content__item-right">{{dt&&dt.CompanySYu||'-'}}</div>
          </div>
          <div class="panel-content__item">
            <div class="panel-content__item-label">单位参加失业保险缴费基数</div>
            <div class="panel-content__item-right">{{dt&&dt.CompanySYe||'-'}}</div>
          </div>
          <div class="panel-content__item">
            <div class="panel-content__item-label">单位参加工伤保险缴费基数</div>
            <div class="panel-content__item-right">{{dt&&dt.CompanyGs||'-'}}</div>
          </div>
        </div>
      </div>

      <div class="panel">
        <div class="panel-title">
          <div class="panel-title__label">本期实际缴费金额</div>
          <div class="panel-title__right"></div>
        </div>
        <div class="panel-content">
          <div class="panel-content__item">
            <div class="panel-content__item-label">参加城镇职工基本养老保险实际缴费金额</div>
            <div class="panel-content__item-right">{{dt&&dt.ActYl||'-'}}</div>
          </div>
          <div class="panel-content__item">
            <div class="panel-content__item-label">参加职工基本医疗保险本期实际缴费金额</div>
            <div class="panel-content__item-right">{{dt&&dt.ActMedical||'-'}}</div>
          </div>
          <div class="panel-content__item">
            <div class="panel-content__item-label">参加生育保险本期实际缴费金额</div>
            <div class="panel-content__item-right">{{dt&&dt.ActSYu||'-'}}</div>
          </div>
          <div class="panel-content__item">
            <div class="panel-content__item-label">参加失业保险本期实际缴费金额</div>
            <div class="panel-content__item-right">{{dt&&dt.ActSYe||'-'}}</div>
          </div>
          <div class="panel-content__item">
            <div class="panel-content__item-label">参加工伤保险本期实际缴费金额</div>
            <div class="panel-content__item-right">{{dt&&dt.ActGs||'-'}}</div>
          </div>
        </div>
      </div>

      <div class="panel">
        <div class="panel-title">
          <div class="panel-title__label">单位累计欠费金额</div>
          <div class="panel-title__right"></div>
        </div>
        <div class="panel-content">
          <div class="panel-content__item">
            <div class="panel-content__item-label">单位参加城镇职工基本养老保险累计欠缴金额</div>
            <div class="panel-content__item-right">{{dt&&dt.OweYl||'-'}}</div>
          </div>
          <div class="panel-content__item">
            <div class="panel-content__item-label">单位参加职工基本医疗保险累计欠缴金额</div>
            <div class="panel-content__item-right">{{dt&&dt.OweMedical||'-'}}</div>
          </div>
          <div class="panel-content__item">
            <div class="panel-content__item-label">单位参加生育保险累计欠缴金额</div>
            <div class="panel-content__item-right">{{dt&&dt.OweSYu||'-'}}</div>
          </div>
          <div class="panel-content__item">
            <div class="panel-content__item-label">单位参加失业保险累计欠缴金额</div>
            <div class="panel-content__item-right">{{dt&&dt.OweSYe||'-'}}</div>
          </div>
          <div class="panel-content__item">
            <div class="panel-content__item-label">单位参加工伤保险累计欠缴金额</div>
            <div class="panel-content__item-right">{{dt&&dt.OweGs||'-'}}</div>
          </div>
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  props: ['dt'],
  data() {
    return {
      show: false
    };
  },
  onUnload() {
    this.show = false;
  },
  computed: {
    cls() {
      const arrow = this.show ? 'icon-shangjiantou' : 'icon-tubiaozhizuo-';
      return `iconfont ${arrow}`;
    }
  }
};
</script>
